package mwt.xml.waxdbforms.business;

import java.util.List;
import java.util.Set;
import mwt.xml.waxdbforms.business.exceptions.BusinessException;
import mwt.xml.xdbforms.dbms.metadata.impl.TableMetadata;
import org.w3c.dom.Document;

public interface DbmsService {
     public List<String> getSchemasList() throws BusinessException;

     public List<TableMetadata> getTablesList(String schemaName) throws BusinessException;

     public TableMetadata getTbaleMetadata(String schemaName, String tableName) throws BusinessException;

     public Set<List<String>> getTableData(String schemaName, String tableName) throws BusinessException;

     public String getXFormsModel(TableMetadata table, String action) throws BusinessException;

     public String getXFormsModel(TableMetadata table, String action, String pkValue) throws BusinessException;

     public Document getXFormsModelDoc(TableMetadata table, String action) throws BusinessException;

     public String getXFormsUI(TableMetadata table) throws BusinessException;

     public boolean insertTable(String xmlData) throws BusinessException;

     public void updateTable(String xmlData) throws BusinessException;

     public void deleteRow(TableMetadata table, String pkValue) throws BusinessException;
}
